package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * @TableName t_zcxx
 */
@TableName(value = "t_zcxx")
@Data
public class Asset implements Serializable {
    /**
     * #
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 入库时间
     */
    @TableField(value = "rksj")
    private Date rksj;

    /**
     * 资产编号
     */
    @TableField(value = "zcbh")
    private String zcbh;

    /**
     * 资产名称
     */
    @TableField(value = "zcmc")
    private String zcmc;

    /**
     * 资产类别id
     */
    @TableField(value = "type_id")
    private Integer typeId;

    /**
     * 资产类别集合
     */
    @TableField(exist = false)
    private List<AssetType> assetType;

    /**
     * 资产类别对象
     */
    @TableField(exist = false)
    private AssetType assetType2;

    /**
     * 资产类别名称
     */
    @TableField(exist = false)
    private String name;

    /**
     * 资产型号
     */
    @TableField(value = "zcxh")
    private String zcxh;

    /**
     * 资产数量
     */
    @TableField(value = "zcsl")
    private Integer zcsl;

    /**
     * 资产单价
     */
    @TableField(value = "zcdj")
    private Long zcdj;

    /**
     * 资产金额
     */
    @TableField(value = "zcje")
    private Long zcje;

    /**
     * 生厂厂家
     */
    @TableField(value = "sccj")
    private String sccj;

    /**
     * 生产日期
     */
    @TableField(value = "scrq")
    private Date scrq;

    /**
     * 购买日期
     */
    @TableField(value = "gmrq")
    private Date gmrq;

    /**
     * 购买人
     */
    @TableField(value = "gmr")
    private String gmr;

    /**
     * 资产状态
     */
    @TableField(value = "sts")
    private Integer sts;

    /**
     * 状态名称
     */
    @TableField(exist = false)
    private String stsName;

    /**
     * 库存数量
     */
    @TableField(value = "kcsl")
    private Integer kcsl;

    /**
     * 采购合同
     */
    @TableField(value = "cght")
    private String cght;


    /**
     * 资产数量，用来显示根据某字段查询的数量结果
     */
    @TableField(exist = false)
    private Integer count;

    /**
     * 日期
     */
    @TableField(exist = false)
    private String date;

    /**
     * 资产调拨实体
     */
    @TableField(exist = false)
    private AssetAllocate assetAllocate;

    /**
     * 资产调拨的机构
     */
    @TableField(exist = false)
    private Integer mec_id;

    /**
     * 资产维修实体
     */
    @TableField(exist = false)
    private AssetFix assetFix;

    /**
     * 资产折旧实体
     */
    @TableField(exist = false)
    private AssetDepreciation assetDepreciation;

    /**
     * 资产折旧id
     */
    @TableField(exist = false)
    private Integer ad_id;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}